<template>
  <div>
    <!-- Swiper -->
    <div class="swiper-container" :id="swipeid">
      <div class="swiper-wrapper">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
import Swiper from 'swiper'
import 'swiper/css/swiper.css'

export default {
  props: ['swipedata', 'swipeid'],
  mounted () {
    // eslint-disable-next-line
    new Swiper(this.swipeid ? '#' + this.swipeid : '.swiper-container', this.swipedata)
  }
}
</script>
